Package com.cisco.pt.ptmp
Interface Pipeline
- All Known Implementing Classes:
PipelineImpl
public interface Pipeline
A wrapper around the mechanism of reading
and writing LTVs including filtering of
data (encoding, encryption, compression etc)
- Author:
- packettracerexapps@external.cisco.com
-
Method Summary
Modifier and TypeMethodDescriptionThe collection of filters for a given pipeline are determined by the connection negotiation propertiesread()Retrieves the data from the connection, executes the @seeFilter.in(byte[])method of each filter on the pipeline and finally constructs a @see com.cisco.pt.LTVvoidExecutes the @seeFilter.out(byte[])method of each filter on the pipeline and sends the resulting data to the connection
-
Method Details
-
getFilters
The collection of filters for a given pipeline are determined by the connection negotiation properties- Returns:
- List<Filter>a list of filter implementations
- See Also:
-
read
Retrieves the data from the connection, executes the @seeFilter.in(byte[])method of each filter on the pipeline and finally constructs a @see com.cisco.pt.LTV- Returns:
- a LTV wrapping the data sent from PT
- Throws:
IOException- read ExceptionInterruptedException- read Exception
-
write
Executes the @seeFilter.out(byte[])method of each filter on the pipeline and sends the resulting data to the connection- Parameters:
ltv- LTV- Throws:
IOException- Write exception
-